package org.jeecg.modules.procurement.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.procurement.entity.BussMaterialProcurementPlan;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.procurement.vo.BussMaterialProcurementPlanDetailPage;
import org.jeecg.modules.procurement.vo.BussMaterialProcurementPlanPage;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 原料采购计划单
 * @Author: jeecg-boot
 * @Date:   2024-06-06
 * @Version: V1.0
 */
public interface IBussMaterialProcurementPlanService extends IService<BussMaterialProcurementPlan> {

	/**
	 * 添加一对多
	 *
	 * @param bussMaterialProcurementPlan
	 * @param bussMaterialProcurementPlanDetailList
	 */
	public int saveMain(BussMaterialProcurementPlan bussMaterialProcurementPlan,List<BussMaterialProcurementPlanDetailPage> bussMaterialProcurementPlanDetailList) ;
	
	/**
	 * 修改一对多
	 *
   * @param bussMaterialProcurementPlan
   * @param bussMaterialProcurementPlanDetailList
	 */
	public int updateMain(BussMaterialProcurementPlan bussMaterialProcurementPlan,List<BussMaterialProcurementPlanDetailPage> bussMaterialProcurementPlanDetailList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);


	IPage<BussMaterialProcurementPlanPage> myPage(Page<BussMaterialProcurementPlan> page, QueryWrapper<BussMaterialProcurementPlan> queryWrapper);
}
